<script>
	import { course } from '$lib/store/app-stores';
	export let mode = '';

	$: fatepoint = $course.point;
</script>

<svg
	class="{mode} {fatepoint > 1 ? 'full' : ''} "
	xmlns="http://www.w3.org/2000/svg"
	xml:space="preserve"
	width="100%"
	height="100%"
	version="1.1"
	style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
	viewBox="0 0 1500001 1500018"
	xmlns:xlink="http://www.w3.org/1999/xlink"
>
	<defs />

	<g id="Layer_x0020_1">
		<metadata id="CorelCorpID_0Corel-Layer" />
		<path
			class="{fatepoint > 0 ? 'filled' : ''} {mode === 'bg' ? 'fil1' : 'fil0'}"
			d="M1237835 754784c-41627,24154 -57713,54476 -62457,79583 -33219,176299 -172756,315073 -349462,347141 -25370,4606 -50457,11941 -76748,59882 -22997,-39721 -55914,-55418 -81993,-60308 -179134,-33502 -319645,-176741 -349037,-357292 -3738,-22943 -12543,-47658 -61831,-69006l107099 0c804,211542 172526,382804 384273,382804 211731,0 383470,-171245 384274,-382804l105882 0z"
		/>
		<path
			class="{fatepoint === 2 ? 'filled' : ''} {mode === 'bg' ? 'fil1' : 'fil0'}"
			d="M752463 258628c26291,50936 54372,62469 82613,68209 168468,34335 301555,166006 337946,333729 6484,29871 16476,66296 70689,90940 -2014,1079 -3971,2172 -5876,3278l-105882 0c2,-498 19,-991 19,-1489 0,-212228 -172047,-384292 -384293,-384292 -212228,0 -384292,172047 -384292,384292 0,498 17,991 19,1489l-107099 0c52566,-19719 58058,-48597 61725,-71328 28241,-175111 160956,-315250 332170,-354422 31341,-7175 75987,-11250 102279,-70406l-18 0z"
		/>
		<path
			class="fil1"
			d="M751489 18l60785 226720c6804,25370 40501,32740 68298,39260l-8486 39544 -1293 -691c-55223,2374 -121395,-68493 -112714,-91276l13146 -34495 -24644 -45992 -19719 54213 12845 22996c7600,13606 -8132,48987 -38357,73595 -21508,17504 -51112,28807 -80983,26788l-6307 -41971c27957,-4412 56694,-213 66792,-33768l70637 -234941 0 18zm479803 614060c4411,27957 212,56693 33768,66792l234941 70636 -226721 60786c-25370,6803 -32740,40500 -39260,68298l-39544 -8486 691 -1294c-2374,-55223 68493,-121394 91277,-112713l34494 13145 45993 -24643 -54213 -19719 -22997 12844c-13606,7601 -48986,-8131 -73595,-38356 -17504,-21508 -28807,-51113 -26787,-80983l41970 -6307 -17 0zm-345352 617231c-27957,4412 -56693,213 -66791,33768l-70637 234941 -60786 -226720c-6803,-25371 -40500,-32741 -68298,-39260l8487 -39544 1293 691c55223,-2374 121395,68493 112713,91276l-13145 34495 24644 45992 19718 -54213 -12844 -22996c-7601,-13607 8132,-48987 38356,-73595 21508,-17504 51113,-28808 80983,-26788l6307 41971 0 -18zm-617231 -345351c-4412,-27957 -213,-56693 -33768,-66792l-234941 -70636 226720 -60786c25371,-6803 32741,-40501 39261,-68298l39543 8486 -691 1294c2374,55222 -68492,121394 -91276,112713l-34495 -13146 -45992 24644 54213 19719 22996 -12845c13607,-7600 48987,8132 73595,38357 17504,21508 28808,51112 26788,80983l-41971 6307 18 0z"
		/>
		<path
			class="fil1"
			d="M820743 133283c91099,116664 206594,101800 284937,176298l3207 2534 -9726 50864 -22306 -17716c-61264,-58253 -147261,-57066 -223124,-121501l-32988 -90497 0 0 0 18zm375186 249185c95121,112625 59138,196106 170523,288675l-77794 -19896c-69839,-75951 -50049,-148040 -131847,-242506l-13589 -10789 52707 -15502 0 18zm170807 438293c-116665,91099 -101800,206594 -176299,284937l-2533 3207 -50865 -9727 17717 -22305c58252,-61264 57065,-147261 121501,-223124l90496 -32988 0 0 -17 0zm-249185 375186c-112625,95121 -196106,59138 -288676,170523l19896 -77794c75951,-69839 148040,-50050 242506,-131848l10789 -13588 15502 52707 -17 0zm-438293 170806c-91100,-116664 -206595,-101800 -284938,-176298l-3207 -2534 9727 -50865 22305 17717c61265,58253 147261,57066 223124,121501l32989 90497 0 0 0 -18zm-375187 -249185c-95120,-112625 -59138,-196106 -170523,-288675l77794 19895c69839,75952 50050,148041 131848,242506l13589 10790 -52708 15502 0 -18zm-170806 -438293c116664,-91099 101800,-206594 176299,-284937l2533 -3207 50865 9727 -17717 22305c-58252,61264 -57065,147261 -121501,223124l-90497 32988 0 0 18 0zm249185 -375186c112625,-95121 196106,-59138 288676,-170523l-19896 77794c-75952,69839 -148041,50050 -242506,131847l-10790 13589 -15502 -52707 18 0z"
		/>
		<path
			class="fil1"
			d="M1128694 1220874c26841,2374 67359,15608 98576,36975 -9850,-34495 -10559,-79052 -8539,-110269 -28843,0 -65393,-24449 -114681,-60591 21367,50936 24644,105042 24644,133903l0 -18zm-762845 -948267c-26840,-2375 -67358,-15609 -98575,-36975 9850,34494 10559,79052 8539,110268 28843,0 65393,24449 114680,60591 -21366,-50935 -24644,-105042 -24644,-133902l0 18zm762845 0c26841,-2375 67359,-15609 98576,-36975 -9850,34494 -10559,79052 -8539,110268 -28843,0 -65393,24449 -114681,60591 21367,-50935 24644,-105042 24644,-133902l0 18zm-762845 948267c-26840,2374 -67358,15608 -98575,36975 9850,-34495 10559,-79052 8539,-110269 28843,0 65393,-24449 114680,-60591 -21366,50936 -24644,105042 -24644,133903l0 -18z"
		/>
		<path
			class="fil1"
			d="M738201 377613l-31748 28878c21348,14794 32864,29871 44362,52867 11498,-24644 24644,-39721 44363,-49589l-34371 -32191c21385,602 42326,3029 62664,7087l22465 22464c-73754,65074 -83623,116151 -91825,226225 32864,-294221 335164,-220290 179080,-77351 42715,-116647 -96928,-114999 -175785,110073l-4164 69272c45515,-77935 86316,-197416 152027,-139908 65711,57508 -64081,113369 -139731,150521l66774 -4961c234941,-77227 236730,-207533 110375,-172808 126497,-154437 241213,144887 -75881,174456 90037,-4447 154437,3295 228670,-85944l19878 19878c4004,20020 6395,40625 7051,61672l-28878 -31748c-14794,21348 -29871,32864 -52867,44362 24644,11498 39721,24644 49589,44363l32191 -34371c-602,21385 -3029,42326 -7086,62664l-22465 22465c-65073,-73754 -116151,-83623 -226224,-91825 294221,32864 220289,335164 77351,179080 116646,42715 114999,-96928 -110074,-175785l-69272 -4164c77935,45515 197417,86316 139908,152027 -57508,65711 -113369,-64081 -150521,-139731l4961 66774c77227,234941 207533,236730 172809,110375 154436,126497 -144887,241212 -174457,-75881 4447,90037 -3295,154437 85944,228670l-19878 19878c-20020,4004 -40624,6395 -61672,7051l31748 -28878c-21348,-14794 -32864,-29871 -44362,-52867 -11498,24644 -24644,39721 -44363,49589l34371 32191c-21384,-602 -42325,-3029 -62664,-7086l-22465 -22465c73755,-65073 83623,-116151 91826,-226224 -32865,294221 -335165,220289 -179081,77351 -42715,116646 96928,114999 175785,-110074l4164 -69272c-45514,77935 -86316,197417 -152027,139908 -65711,-57508 64081,-113369 139731,-150521l-66774 4961c-234941,77227 -236730,207533 -110375,172809 -126497,154436 -241212,-144887 75881,-174457 -90036,4447 -154437,-3295 -228669,85944l-19879 -19878c-4004,-20020 -6395,-40624 -7051,-61672l28878 31748c14794,-21348 29871,-32864 52867,-44362 -24644,-11498 -39721,-24644 -49589,-44363l-32191 34371c602,-21384 3029,-42325 7086,-62664l22465 -22465c65074,73755 116151,83623 226225,91826 -294221,-32865 -220290,-335165 -77352,-179081 -116646,-42715 -114999,96928 110074,175785l69272 4164c-77935,-45514 -197417,-86316 -139908,-152027 57508,-65711 113369,64081 150521,139731l-4961 -66774c-77227,-234941 -207533,-236730 -172808,-110375 -154437,-126497 144887,-241212 174456,75881 -4447,-90036 3295,-154436 -85944,-228669l19878 -19878c20020,-4004 40625,-6396 61672,-7052z"
		/>
	</g>
</svg>

<style>
	svg {
		width: 100%;
	}
	.fil0 {
		fill: #a0907d;
	}
	.fil1 {
		fill: #d7d0c7;
	}
	.bg .fil1 {
		fill: #e1ddd4;
	}
	.filled {
		fill: #5b9ee2;
	}

	.full .fil1 {
		fill: #d5d9df;
	}
</style>
